package com.surpermaket.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    @RequestMapping("/hello")//如果URI是hello，则调用该方法
    public String hello(){
        //当返回值是hello的时候，视图解析器会让返回WEB-INF/view/hello.jsp
        return "hello";
    }

    @RequestMapping("/login")
    public String login(){
        //当返回值是hello的时候，视图解析器会让返回WEB-INF/view/hello.jsp
        return "login";
    }

    @RequestMapping("/regist")
    public String regist(){
        //当返回值是hello的时候，视图解析器会让返回WEB-INF/view/hello.jsp
        return "regist";
    }


}
